export const defaultState = {
    selectedPayWith: {},
    payWithList: [],
    importSafeData: {},
    selectedWallet: {},
    feeData: {},
}

export default sectokenSafeReducer = (state = defaultState, action) => {
    switch (action.type) {
        case 'setSelectedPayWith':
            return { ...state, selectedPayWith: action.value };
        case 'setPayWithList':
            return { ...state, payWithList: action.value };
        case 'setSelectedWallet':
            return { ...state, selectedWallet: action.value };
        case 'setFeeData':
            return { ...state, feeData: action.value };
        default:
            return state
    }
}